package com.ynhenc.pta.routeRank;

import com.ynhenc.pta.routeRank.*; 

public class StartEndNode {
	
	public StartEndNode( TransitType transitType, Node startNode, Node endNode ) {
		this( transitType, startNode, endNode, "" );
	}
	
	public StartEndNode( TransitType transitType, Node startNode, Node endNode, String description ) {
		this.transitType = transitType;
		this.startNode = startNode;
		this.endNode = endNode;
		this.description = description;
	}
	
	public Node getStartNode() {
		return startNode;
	}
	public Node getEndNode() {
		return endNode;
	}
	public TransitType getTransitType() {
		return transitType;
	}
	
	public void setTransitType( TransitType transitType ) {
		this.transitType = transitType;
	}
	
	public String getDescription() {
		return this.description;
	}
	
	public String toString() {
		return this.transitType.toString() + ", s: " + startNode + ", e: " + endNode + ", " + this.getDescription();
	}
	
	private Node startNode;
	private Node endNode;
	private TransitType transitType;
	private String description;
}
